package com.yzyz.utils.json.management;

import net.sf.json.JsonConfig;

import com.yzyz.bean.scenic.PictureBean;

/**
 * 
 * @author David Sun
 * @Date   2010-3-24
 *
 */
public class JSONPictureM extends PictureBean {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7892365995961097098L;
	
	private String url;
	
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public static JsonConfig getConfig(){
		String [] config = {"contents","date"};
		JsonConfig js = new JsonConfig();
		js.setExcludes(config);
		return js;
	}
	
	public JSONPictureM(){
		super();
	}
	
	public JSONPictureM(PictureBean picture, String url) {
		super(picture);
		this.url = url + "/management/picture.htm?method=getImage&scenicId="+picture.getOwnerId()+"&pictureId=" + picture.getId();
	}

}
